package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 自定义规则管理对象 custom_rule
 * 
 * @author ruoyi
 * @date 2025-03-22
 */
public class CustomRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自定义规则表ID */
    @Excel(name = "自定义规则表ID")
    private Long customRuleId;

    /** 清洗配置表ID */
    @Excel(name = "清洗配置表ID")
    private Long cleaningConfigId;

    /** 自定义清洗规则表达式 */
    @Excel(name = "自定义清洗规则表达式")
    private String ruleExpression;

    public void setCustomRuleId(Long customRuleId) 
    {
        this.customRuleId = customRuleId;
    }

    public Long getCustomRuleId() 
    {
        return customRuleId;
    }

    public void setCleaningConfigId(Long cleaningConfigId) 
    {
        this.cleaningConfigId = cleaningConfigId;
    }

    public Long getCleaningConfigId() 
    {
        return cleaningConfigId;
    }

    public void setRuleExpression(String ruleExpression) 
    {
        this.ruleExpression = ruleExpression;
    }

    public String getRuleExpression() 
    {
        return ruleExpression;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("customRuleId", getCustomRuleId())
            .append("cleaningConfigId", getCleaningConfigId())
            .append("ruleExpression", getRuleExpression())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
